package com.data.unityplugin_market.viewmodel

import android.databinding.ObservableField

public  class AddressFragmentVM{


    var manageAddressClick = ObservableField<Boolean>(true)

    var addAddressClick = ObservableField<Boolean>()

    var modifyAddressClick = ObservableField<Boolean>()

    /**
     * 管理地址
     */
    fun manageAddress(){
        manageAddressClick.set(true)
        addAddressClick.set(false)
        modifyAddressClick.set(false)
    }

    /**
     * 添加地址
     */
    fun addAddress(){
        manageAddressClick.set(false)
        addAddressClick.set(true)
        modifyAddressClick.set(false)
    }

    /**
     *
     */
    fun modifyAddress(){
        manageAddressClick.set(false)
        addAddressClick.set(false)
        modifyAddressClick.set(true)
    }
}